/*
*  SkyBufferHeader.h
*  
*
*  Created by Alexander Trutchenko on 11/02/12.
*  Copyright 2012 Free Team. All rights reserved.
*
*/

#ifndef __Sky_BufferHeader_h__
#define __Sky_BufferHeader_h__

#include "SkyOpenALInclude.h"
//#include "SkyTypes.h"

#include <string>

namespace sky {

////////////////////////////////////////////////////////
//
/** SkyBufferHeader
*  
*/
////////////////////////////////////////////////////////

class SkyBufferHeader
{
public:
	ALenum format;
	ALsizei decodedSize;
	ALsizei frequency;
	std::string name; //file name or any title

public:
	SkyBufferHeader(const char* name_): format(AL_FORMAT_MONO8), decodedSize(0), frequency(0), name(name_)  {;}
	SkyBufferHeader& operator = (const SkyBufferHeader& h)
	{
		format = h.format;
		decodedSize = h.decodedSize;
		frequency = h.frequency;
		name = h.name; 
		return *this;
	}
	SkyBufferHeader(const SkyBufferHeader& h)
	{
		format = h.format;
		decodedSize = h.decodedSize;
		frequency = h.frequency;
		name = h.name; 
	}
}; //class SkyBufferHeader

} // namespace sky

#endif //__Sky_BufferHeader_h__
